<div class="row">
    <div class="col-sm-12">
        <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
            <thead>
                <tr role="row">
                    <th class="sorting text-center" tabindex="0">ID</th>
                    <th class="sorting text-center" tabindex="0">名称</th>
                    <th class="sorting text-center" tabindex="0">手机</th>
                    <th class="sorting text-center" tabindex="0">专业类型</th>
                    <th class="sorting text-center" tabindex="0">悬赏金额</th>
                    <th class="sorting text-center" tabindex="0">打赏金额</th>
                    <th class="sorting text-center" tabindex="0">付费查看金额</th>
                    <th class="sorting text-center" tabindex="0">提现金额</th>
                    <th class="sorting text-center" tabindex="0">总采纳数</th>
                    <th class="sorting text-center" tabindex="0">总回答数</th>
                    <th class="sorting text-center" tabindex="0">职业证号</th>
                    <th class="sorting text-center" tabindex="0">所在城市</th>
                    <th class="sorting text-center" tabindex="0">账户状态</th>
                    <th class="sorting text-center" tabindex="0">年费到期时间</th>
                    <th class="sorting text-center" tabindex="0">注册时间</th>
                    <th class="sorting text-center" tabindex="0">操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name="lists" id="vo" >
                <if condition="$vo.au_id gt 0">
                <tr role="row">
                    <td align="center">{$vo.au_id}</td>
                    <td>{$vo.username}</td>
                    <td class="text-left">{$vo.mobile}
                        <if condition="($vo['mobile_validated'] eq 0) AND ($vo['mobile'])">
                            (未验证)
                        </if>
                    </td>
                    <td>{:getCatNameStr($vo[cat_ids])}</td>

                    <td>{$vo.reward_money}</td>
                    <td>{$vo.bonus_money}</td>
                    <td>{$vo.charge_money}</td>
                    <td>-{$vo.outcash_money}</td>
                    <td>{$vo.adoption_num}</td>
                    <td>{$vo.count}</td>
                    <td>{$vo.professional_num}</td>
                    <td>{$vo.city_name}</td>
                    <td>{$user_status[$vo[status]]}</td>
                    <td>
                        <?php
                        if($vo[expired_time] < time()){
                            echo '<font color="red">';
                        }
                        ?>
                        {$vo.expired_time|date="Y-m-d H:i:s",###}
                        <?php
                        if($vo[expired_time] < time()){
                            echo '</font>';
                        }
                        ?>
                     </td>
                    <td>{$vo.reg_time|date="Y-m-d H:i:s",###}</td>

                <td>

                    <a href="{:U('accountant/detail',array('id'=>$vo['au_id']))}" data-toggle="tooltip" title="编辑" class="btn btn-info" data-original-title="编辑"><i class="fa fa-pencil"></i></a>

                    <a href="{:U('accountant/answer',array('id'=>$vo['au_id']))}" data-toggle="tooltip" title="回答列表" class="btn btn-info" data-original-title="问题列表"><i class="fa fa-book"></i></a>

                    <a href="{:U('Finance/detail',array('mobile'=>$vo['mobile']))}" data-toggle="tooltip" title="赏金列表" class="btn btn-info" data-original-title="赏金列表"><i class="fa fa-money"></i></a>

                    <a title="删除" class="btn btn-danger" href="javascript:;" data-url="{:U('accountant/handle')}" data-id="{$vo.au_id}" onclick="delfun(this)"><i class="fa fa-trash-o"></i></a>
                </td>
                </tr>
                </if>
            </volist>
            </tbody>
            <tfoot>
            </tfoot>
        </table>
    </div>
</div>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var href = $(this).attr('href');
        page = href.split('/');
        ajaxGetTable('search-form2', page[page.length - 1]);
        return false;
    });
</script>